﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>电子点餐系统</title>

		<link rel="stylesheet" href="components/webos/desktop.css" />
		<!--  <link rel="stylesheet" href="style/forms.css" />-->
		<link rel="stylesheet"
			href="components/webos/jsLib/themes/base/jquery.ui.all.css" />
		<link rel="stylesheet"
			href="components/webos/jsLib/jquery-smartMenu/css/smartMenu.css" />
		<script type="text/javascript" src="components/jquery/jquery-1.8.0.js"></script>
		<script type="text/javascript" src="components/webos/jsLib/myLib.js"></script>
		<script type="text/javascript"
			src="components/webos/jsLib/jquery-ui-1.8.16.custom.min.js"></script>
		<script type="text/javascript" src="components/webos/jsLib/jquery.winResize.js"></script>
		<script type="text/javascript"
			src="components/webos/jsLib/jquery-smartMenu/js/mini/jquery-smartMenu-min.js"></script>
		<script type="text/javascript" src="components/webos/desktop.js"></script>


		<script type="text/javascript">
			$(function(){
				$('#login').click(function(){
             		$('#loginWin').dialog({
             		  		title: '用户登录',
             		  		autoOpen:true,
             		  		height: 300,
							width: 350,
             		  		modal: true,
						    open: function() {
             					$(this).load('html/login/login.html');
         					},
         					buttons:{
         						'登录':function(){
         							var vUserName = $('#userName').val();
         							var vPassWord = $('#passwd').val();
         							
         							doLogin(vUserName,vPassWord,function(loginStatus){
         								if(loginStatus=='success'){
         								 alert(loginStatus);
         								}
         							});
         						},
         						'取消':function(){
         						
         						}
         						
         					}
         						
					});
				});
					 
				$('#btMod').click(function(){
				
				});
				
				$('#btDel').click(function(){
				
				});
			})
			
			function doLogin(userName,userPsd,callbackFunc){
				$.ajax({
						async:true,
         				cache:false,
         				dataType:"json",
         				url:'login.action',
         				type:'POST',
         				data:{dlm:userName,mm:userPsd},
         				success:function(data, textStatus){
         					if(callbackFunc){
         						callbackFunc(data.loginStatus);
         					}
         				},
         				error:function(XMLHttpRequest, textStatus, errorThrown){
         					alert(textStatus);
         				},
         				timeout:5000			
         		});
			}
		</script>

	</head>
	<body>
		<a href="#" class="powered_by">Powered by fleiCMS 1.0</a>
		<ul id="deskIcon">
			<li class="desktop_icon" id="win5" lang="html/basedata/basesjlx.html">
				<span class="icon"><img src="components/webos/icon/icon4.png" /> </span>
				<div class="text">
					相册
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win6" lang="html/basedata/basesjlx.html">
				<span class="icon"><img src="components/webos/icon/icon5.png" /> </span>
				<div class="text">
					游戏
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win7">
				<span class="icon"><img src="components/webos/icon/icon6.png" /> </span>
				<div class="text">
					日历
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win8">
				<span class="icon"><img src="components/webos/icon/icon7.png" /> </span>
				<div class="text">
					聊天室
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win9">
				<span class="icon"><img src="components/webos/icon/icon8.png" /> </span>
				<div class="text">
					通讯薄
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win10">
				<span class="icon"><img src="components/webos/icon/icon9.png" /> </span>
				<div class="text">
					日记
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win11">
				<span class="icon"><img src="components/webos/icon/icon10.png" /> </span>
				<div class="text">
					文档资料
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win12">
				<span class="icon"><img src="components/webos/icon/icon6.png" /> </span>
				<div class="text">
					日历
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win14">
				<span class="icon"><img src="components/webos/icon/icon7.png" /> </span>
				<div class="text">
					聊天室
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win13">
				<span class="icon"><img src="components/webos/icon/icon8.png" /> </span>
				<div class="text">
					通讯薄
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win15">
				<span class="icon"><img src="components/webos/icon/icon9.png" /> </span>
				<div class="text">
					日记
					<div class="right_cron"></div>
				</div>
			</li>
			<li class="desktop_icon" id="win16">
				<span class="icon"><img src="components/webos/icon/icon10.png" /> </span>
				<div class="text">
					文档资料
					<div class="right_cron"></div>
				</div>
			</li>
		</ul>
		<div id="taskBar">
			<div id="leftBtn">
				<a href="#" class="upBtn"></a>
			</div>
			<div id="rightBtn">
				<a href="#" class="downBtn"></a>
			</div>
			<div id="task_lb_wrap">
				<div id="task_lb"></div>
			</div>
		</div>
		<div id="lr_bar">
			<ul id="default_app">
				<li id="app0">
					<img src="components/webos/icon/icon1.png" title="我的网站"
						name="html/basedata/basesjlx.html" />
				</li>
				<li id="app2">
					<img src="components/webos/icon/icon0.png" title="内容管理" />
				</li>
				<li id="app3">
					<img src="components/webos/icon/icon2.png" title="用户管理" />
				</li>
				<li id="app4">
					<img src="components/webos/icon/icon3.png" title="邮件" />
				</li>
				<li id="app1">
					<img src="components/webos/icon/icon11.png" title="我的好友" />
				</li>
			</ul>
			<div id="default_tools">
				<span id="showZm_btn" title="显示桌面"></span><span id="shizhong_btn"
					title="时钟"></span><span id="weather_btn" title="天气"></span>
				<span id="them_btn" title="主题"></span>
			</div>
			<div id="start_block">
				<a title="点击这里开始" id="start_btn"></a>
				<div id="start_item">
					<ul class="item admin">
						<li id="login">
							<span class="adminImg"></span>请登录
						</li>
					</ul>
					<ul class="item">
						<li>
							<span class="sitting_btn"></span>系统设置
						</li>
						<li>
							<span class="help_btn"></span>使用指南
							<b></b>
						</li>
						<li>
							<span class="about_btn"></span>关于我们
						</li>
						<li>
							<span class="logout_btn"></span>退出系统
						</li>
					</ul>
				</div>
			</div>
		</div>

		<div id="loginWin" style="display: none">
		
		</div>
	</body>
</html>
